-- Table: public.PediatricEncounter

-- DROP TABLE public."PediatricEncounter";
create sequence  "PediatricEncounter_PediatricEncounterId_seq"
CREATE TABLE IF NOT EXISTS public."PediatricEncounter"
(
    "PediatricEncounterId" bigint NOT NULL DEFAULT nextval('"PediatricEncounter_PediatricEncounterId_seq"'::regclass),
    "AppointmentId" integer,
    "Active" boolean NOT NULL DEFAULT true,
    "CreatedBy" integer NOT NULL,
    "CreatedDate" timestamp(6) without time zone NOT NULL,
    "ModifiedBy" integer,
    "ModifiedDate" timestamp(6) without time zone,
    "AdmissionId" integer,
    "PediatricEncounterDate" timestamp(6) without time zone NOT NULL,
    "Measurements" text COLLATE pg_catalog."default",
    "NeonatalRisk" text COLLATE pg_catalog."default",
    "PediatricRisk" text COLLATE pg_catalog."default",
    "Syndrome" text COLLATE pg_catalog."default",
    CONSTRAINT "PediatricEncounter_pkey" PRIMARY KEY ("PediatricEncounterId")
)

TABLESPACE pg_default;

ALTER TABLE public."PediatricEncounter"
    OWNER to postgres;
===================================================================

ALTER TYPE encountertype_elements ADD VALUE 'PediatricEncounter'   AFTER  'IvfEncounter' 
